package com.spooky.sync;

import android.os.Bundle;
import android.widget.TextView;
import com.spooky.sync.persistence.db.TableCreateSyntax;
import com.spooky.sync.persistence.db.UpdateSql;

public class MainActivity extends BaseMenuActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// restore values
		super.onCreate(savedInstanceState);
		// Inflate the XML code into java GUI
		setContentView(R.layout.main);
		TextView textView = (TextView) findViewById(R.id.textMain);
		try {
			textView.setText(new TableCreateSyntax().createBatchQuery());
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	@Override
	protected void onSaveInstanceState(Bundle savedInstanceState) {
		// store values before activity is destroyed so it can be restored in
		// onCreate or onRestoreInstanceState
		super.onSaveInstanceState(savedInstanceState);
	}

	@Override
	protected void onStart() {
		super.onStart();
	}

	@Override
	protected void onResume() {
		super.onResume();
		// Intent intent = new Intent(this, SettingsActivity.class);
		// startActivity(intent);
	}

	@Override
	protected void onPause() {
		super.onPause();
	}

	@Override
	protected void onStop() {
		super.onStop();
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
		UpdateSql.onDestroy();
	}
}